﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Clirelmgt.Models
{
    [Serializable]
    public class MetaTableField
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public FieldDataType DataType { get; set; }
        public ushort FieldLength { get; set; }
        public string Options { get; set; }
        public List<MetaLanguage> Labels { get; set; }
        public bool NotNull { get; set; }
    }

    [Serializable]
    public class MetaFormField
    {
        public string Name { get; set; }
        public FieldDataType DataType { get; set; }
        public ushort FieldLength { get; set; }
        public string Options { get; set; }
        public string DisplayLabel { get; set; }
        public object FieldValue { get; set; }
        public bool Required { get; set; }
        public List<MetaScript> ClientScripts { get; set; }
    }

    [Serializable]
    public class MetaLanguage
    {
        public string LangID { get; set; }
        public string LabelText { get; set; }
    }

    [Serializable]
    public class MetaSubField
    {
        public string Name { get; set; }
        public string DisplayName { get; set; }
        public string FieldValue { get; set; }
    }

    [Serializable]
    public class MetaProcessField
    {
        public string Name { get; set; }
        public FieldDataType DataType { get; set; }
        public ushort FieldLength { get; set; }
        public string Options { get; set; }
        public List<MetaLanguage> Labels { get; set; }
        public bool Required { get; set; }
        public object FieldValue { get; set; }
    }
}